package com.salary.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * 考勤统计表
 */
@Table(name = "works")
public class Work implements Serializable {

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private int id;

    /**
     * 员工ID
     */
    @TableField(value = "employee_id")
    private Integer employeeId;

    /**
     * 出勤天数
     */
    private int cqnum;

    /**
     * 请假天数
     */
    private int qjnum;

    /**
     * 迟到天数
     */
    private int cdnum;

    /**
     * 早退天数
     */
    private int ztnum;

    /**
     * 统计日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date tdate;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date ctime;
    /**
     * 修改时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date utime;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public Integer getEmployeeId() {
        return employeeId;
    }

    public void setEmployeeId(Integer employeeId) {
        this.employeeId = employeeId;
    }

    public int getCqnum() {
        return cqnum;
    }

    public void setCqnum(int cqnum) {
        this.cqnum = cqnum;
    }

    public int getQjnum() {
        return qjnum;
    }

    public void setQjnum(int qjnum) {
        this.qjnum = qjnum;
    }

    public int getCdnum() {
        return cdnum;
    }

    public void setCdnum(int cdnum) {
        this.cdnum = cdnum;
    }

    public Date getTdate() {
        return tdate;
    }

    public void setTdate(Date tdate) {
        this.tdate = tdate;
    }

    public Date getCtime() {
        return ctime;
    }

    public void setCtime(Date ctime) {
        this.ctime = ctime;
    }

    public Date getUtime() {
        return utime;
    }

    public void setUtime(Date utime) {
        this.utime = utime;
    }

    public int getZtnum() {
        return ztnum;
    }

    public void setZtnum(int ztnum) {
        this.ztnum = ztnum;
    }


}
